Chapter Summary 2

MATLAB is not only a computer language with the basic data types that a computer language should have, but also a scientific computing language with special data types related to scientific computing. This chapter focuses on data types in MATLAB such as arrays, matrices, strings, multidimensional arrays, date and time arrays, categorical arrays, tables, timetables, structure arrays, cell arrays, and function handles. By default, MATLAB uses the double data type. In some cases, other data types besides double can be used.

Exercises 2

What are the data types in MATLAB? What occasions are each data type used for?

What is the difference between the double data type and other data types besides double?

Understand the precision of floating-point numbers.

Master the creation and usage methods of various data type variables.

Master the creation and usage methods of various data type variables.